﻿@model ToWaDBFirst.Models.MessageWrapper

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>@Model.title</legend>

    <div class="display-label">Posted</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.posted)
    </div>

    <div class="display-label">Recivers</div>
    <div class="display-field">
        <ul>
            @foreach (var to in Model.toUsers)
            {
                <li>@to</li>
            }
        </ul>
    </div>
    <div class="display-label">Content</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.content)
    </div>

</fieldset>
<p>
    @Html.ActionLink("Back to List", "Index")
</p>
